<div class="operateBox">
  <div id="p_toolbar"></div>
  <h2><?php echo $this->title?></h2>
</div>

<form class="box-2col-w" id="form1">
  <input type="hidden" id="data_id" name="data_id" value="<?php echo $data['id'];?>" />
  <div class="right-small"><fieldset class="post-col"> 
    <div class="sh">标题：</div>
    <div class="sp"><input class="wide" name="data[title]" type="text" value="<?php e_h($data['title']);?>"  maxlength="50" /></div>
    <div class="sh">栏目：</div>
    <div class="sp"><a class="p-browseBut" onClick="w_open('?u=csort\\a-fselect&M&callFun=addSort','sel_sort',300)"><?php lang::_g('select');?></a>
    	<div id="p_sort_added">
           <?php if($sort_R)foreach($sort_R as $_v){?>
           <span><input type="hidden" class="update" value="<?php e_h($_v['id'])?>" /><?php echo $_v['id'].','; e_h($_v['name'])?><a class="icon-16-drop"></a>&nbsp;</span>
           <?php }?>
        </div>
        <div id="p_sort_new"></div>     
    </div>
    <div class="separator"></div>
    <div class="sh">缩略图：</div>
    <div class="sp"><input name="data[pic]" type="text" id="p_pic" value="<?php e_h($data['pic']);?>"  />&nbsp;<a class="p-browseBut" onclick="openFileWin('set_obj=p_pic&set_val=id');"><?php lang::_g('browse')?></a></div>
    <div class="sh">关键词：</div>
    <div class="sp"><input class="wide" name="data[keyword]" type="text" value="<?php e_h($data['keyword']);?>" maxlength="12" /></div>
    <div class="sh">链接短标题：</div>
    <div class="sp"><input class="wide" name="data[url_title]" type="text" value="<?php e_h($data['url_title']);?>"  /></div>
    
    <div class="sh">布局：</div>
    <div class="sp"><?php html::selectR('name="data[layout_id]"', YF_f::initC('\c\layout\g')->li('info'), $data['layout_id'], lang::g('default'));?></div>
    <div class="sh">状态：</div>
    <div class="sp"><?php html::radio('name="data[state]"', lang::Ag($this->State), $data['state'])?></div>
    <div class="separator"></div>
    <div class="sh">挂接附件：</div>
    <div class="sp"><a class="p-browseBut" onClick="openFileWin('callFun=addFiles', 'M')"><?php lang::_g('browse')?></a>
        <div id="p_file_added"><?php if($file_R)foreach($file_R as $v){?>
        	<p><input type="hidden" class="update" value="<?php e_h($v['path'])?>" /><?php e_h($v['name'])?><a class="icon-16-drop"></a></p>
            <?php }?>
        </div>
        <div id="p_file_new"></div>
    </div>
    
    <div class="separator"></div>
    <div class="sh">跳转链接：</div>
    <div class="sp"><input class="wide" name="data[url]" type="text" value="<?php e_h($data['url']);?>"  /></div>
  </fieldset>
  </div>
  
  <div class="left-big">
    <table class="ta_l" width="100%">
      <tr>
        <th align="right" width="50">简要：</th>
        <td><textarea name="data[description]" style="width:99%"  rows="2"><?php e_h($data['description']);?></textarea></td>
      </tr>
      <tr>
        <th align="right">内容：</th>
        <td><textarea name="data_content" class="none"><?php echo htmlspecialchars($data_content)?></textarea></td>
      </tr>
      <tr>
        <th></th>
        <td><label><input type="checkbox" name="down_pic" value="1">复制图片到自己服务器(保存时会很耗时)</label></td>
      </tr>
    </table>
  </div>
  <div class="cl"></div>
</form>   
 
<form class="right-small" id="lpi_form"> 
   <fieldset class="post-col"><legend><a href="?u=clayout\plate\propel" target="_blank">推送到板块</a></legend>
    <div><?php html::selectR('name="plate_id" id="lpi_id" multiple style="50px; width:99%"', YF_f::initC('\c\layout\plate\g')->typeList('\c\info\g cp_recom'), '', null);?></div>
    <div><button class="submit" id="lpi_but_send" type="button">发送</button><span class="textNote" id="lpi_note"></span></div>
   </fieldset>
</form>
<?php html::pushHead('ckeditor/ckeditor.js');?>
<script type="text/javascript">
CKEDITOR.replace('data_content',{height:380});

var c_U='?u=c<?php e_a(YF_f::$arr['c'])?>';
loadScript('t-info_post.js');
</script>